home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Collection of Internet
/
Collection of Internet.iso
/
msdos
/
lynx
/
source
/
wattcp
/
elib
/
isstring.c
< prev
next >
Encoding:
Amiga
Atari
Commodore
DOS
FM Towns/JPY
Macintosh
Macintosh JP
NeXTSTEP
RISC OS/Acorn
Shift JIS
UTF-8
Wrap
C/C++ Source or Header
|
1994-10-25
|
386 b
|
19 lines
#include <stdio.h>
#include <ctype.h>
#include <string.h>
int isstring( char *string, unsigned stringlen )
{
if ( (unsigned) strlen( string ) > stringlen - 1 ) return( 0 );
while ( *string ) {
if ( !isprint( *string++ )) {
string--;
if ( !isspace( *string++ ))
return( 0 );
}
}
return( 1 );
}